AmigaSoc UK

Through The X Window

If you've succesfully installed NetBSD, one of your first thoughts, after the euphoria and joy of having installed it correctly has passed must have been, "it's not much to look at is it?" Well this month we're going to rectify that situation. Although all UNIXes, including NetBSD are heavily text based operating systems there is a "Windowing System" known as the "X Windowing System" or more simply "X" available. Details of how to obtain and install X can be found here.

Despite it's simple name X is a very complex package providing hardware independent retargetable graphics. X works by running what is known as an X server on your desktop machine. The X server does not actually add a Graphical User Interface to your machine, it simply provides an mechanism for other graphical applications to talk to your computer. Running on top of the X server you will need a Window Manger. This controls the look and feel of the desktop environment. There are many different Window Managers available, including ones to make your desktop look like that of a Mac, a Windows 95 PC or even an Amiga. The Amiga distribution of X includes 2 Windows managers FVWM and CTWM.
Xman, is a manual browser for X, hence the name!

Starting X will launch both the X-server and a windows manager, usually FVWM by default, which will produce a screen much like this . Pressing the left mouse over the background will produce a menu of applications. Not all of these are included with the X11 distribution so you will be unable to run all of them. The right mouse button produces another menu listing current running programs allowing you to easily switch between them. Pressing the left mouse button over the close gadget in the top left hand corner of each window produces a menu which allows you to minimise, close or kill that particular window.


Never lose track of the time with X Clock
The default installation opens two windows at startup, an Xconsole and an Xterm. The Xconsole is NetBSD's message window. You will find you can't use it to type commands into, instead NetBSD will print any system messages in this window. This enables you to keep an eye on what your system is doing at all times without it interfering with what you are doing. (If you are not running X and are logged into the console NetBSD will display any messages on your screen).
The Xterm is simply a graphical version of the normal NetBSD screen which you can use to enter commands. It is possible, however to run more than one xterm at once allowing you to perform many task easily at the same time.

In the bottom right hand corner of the screen you will see a button bar containing a clock; a CPU meter; a mailbox flag, although no mail client is included and a kill button. The kill button can be used to terminate any programs that you have finished using, however it is usually desirable to exit them in a more normal fashion. Under the button bar are three boxes that represent three virtual desktops. If you have a powerful enough system these allow you to run many applications at the same time without your display becoming cluttered.

Most of the programs that can utilise a graphical display can be found in /usr/local/X11R6.1/bin, although non-graphical programs can still be run in an xterm. One of the great strengths of X is that an application does not need to be installed on your machine for you to use it. If you are connected to a network with other Unix machines on it you can run an application on a remote machine and instruct it to use your X-server as it's display. This technique is known as "exporting the display". Many large organisations use this feature as it allows them to use cheap, relatively low power PCs as desktop machines but lets the users run high power applications on large expensive Unix workstations hidden away in server rooms. If you are fortunate to have your Amiga on a network with other Unix machines this can give you instant access to a wide range of software, including titles that have never been released on the Amiga. There is even a version of Windows NT that can export it's display to any machine running X, although personally I wouldn't let it anywhere near my Amiga!

Xcalc is another one of the standard X applications included in the distribution.

In the next article I'll be taking a look at what applications are available for NetBSD, where to get them from and how to install them.